#########################
#
# Springboot jar
#
# @doc https://base3.xiaojukeji.com/docs/ddcloud/%E5%BF%AB%E9%80%9F%E4%B8%8A%E6%89%8B/%E4%B8%8A%E4%BA%91%E4%B8%BE%E4%BE%8B/sprintboot%E6%8E%A5%E5%85%A5.html
#
#FROM registry.xiaojukeji.com/didionline/didipublic-nginx-static:stable
# @date 20220309改为tab自定义镜像 @by mathewlijiang
FROM registry.xiaojukeji.com/didionline/secpublic-tas-base-openresty:stable


MAINTAINER mathewlijiang <mathewlijiang@didichuxing.com>

COPY ./init /etc/container/init

## 不启动apollo的agent
ENV DEPLOY_APOLLO_NOT_NEED_START 1
## 不启动bifrost的agent
ENV DEPLOY_BIFROST_NOT_NEED_START 1
## 不启动disf的agent
ENV DEPLOY_DISF_NOT_NEED_START 1
## 不启动日志采集
## DEPLOY_SWAN_NOT_NEED_START 1
## 声明日志文件保留天数，默认10天
## ENV DELETE_LOG_MTIME 20

ENV MODULE_NAME tas-data-govern-portal
RUN mkdir -p /home/xiaoju/$MODULE_NAME
RUN mkdir -p /home/xiaoju/$MODULE_NAME/logs

COPY control.sh /home/xiaoju/$MODULE_NAME/
## 下方代码注意替换，需要把你代码根目录下的其他文件都拷贝过来
COPY ./* /home/xiaoju/$MODULE_NAME/

#RUN sed -i "s/service/$MODULE_NAME/g" /etc/supervisord.d/supervisor-service.conf

#CMD /bin/bash /home/xiaoju/$MODULE_NAME/control.sh start
#CMD /bin/bash /etc/container/init/990-startservice.required.sh
